package com.zkthink.ceres.applet.pcSetting.domain.entry;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import lombok.Data;

/**

@Author cmz
@Date 2024-05-14 9:27
*/
/**
    * 设置管理
    */
@Data
@TableName(value = "pc_setting")
public class PcSetting {
    /**
     * 设置id
     */
    @TableId(value = "setting_id", type = IdType.AUTO)
    private Long settingId;

    /**
     * 公告标题
     */
    @TableField(value = "setting_title")
    private String settingTitle;

    /**
     * 设置类型(1用户政策2隐私协议3vip规则4分享规则)
     */
    @TableField(value = "setting_type")
    private Integer settingType;

    /**
     * 设置内容
     */
    @TableField(value = "setting_content")
    private String settingContent;

    /**
     * 设置状态（0正常 1删除）
     */
    @TableField(value = "status")
    @TableLogic(value = "0",delval = "1")
    private Integer status;

    /**
     * 创建人
     */
    @TableField(value = "create_user")
    private Long createUser;

    /**
     * 更新人
     */
    @TableField(value = "update_user")
    private Long updateUser;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    public static final String COL_SETTING_ID = "setting_id";

    public static final String COL_SETTING_TITLE = "setting_title";

    public static final String COL_SETTING_TYPE = "setting_type";

    public static final String COL_SETTING_CONTENT = "setting_content";

    public static final String COL_STATUS = "status";

    public static final String COL_CREATE_USER = "create_user";

    public static final String COL_UPDATE_USER = "update_user";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";
}